<template>
  <div>
    <Chart :cdata="cdata" />
  </div>
</template>

<script>
import Chart from './chart.vue';
export default {
  data () {
    return {
      cdata: {
        indicatorData: [
          { name: "生产效率", max: 100 },  // 百分比
          { name: "合格率", max: 100 },    // 百分比
          { name: "日产量", max: 5000 },   // 件
          { name: "设备故障率", max: 5 },  // 百分比
          { name: "原材料损耗", max: 100 }, // 千克
          { name: "人工成本", max: 5000 }  // 元/天
        ],
        dataBJ: [  // 一号生产线
          [92, 98.5, 3200, 1.2, 45, 3200],
          [94, 98.2, 3400, 1.0, 42, 3300],
          [91, 97.8, 3100, 1.5, 48, 3100],
          [95, 99.0, 3500, 0.8, 40, 3400],
          [93, 98.7, 3300, 1.1, 43, 3250],
          [96, 99.2, 3600, 0.7, 38, 3500],
          [90, 97.5, 3000, 1.8, 50, 3000]
        ],
        dataGZ: [  // 二号生产线
          [88, 97.2, 2800, 2.1, 55, 2900],
          [89, 97.5, 2900, 1.9, 53, 3000],
          [87, 96.8, 2700, 2.3, 58, 2800],
          [90, 98.0, 3000, 1.7, 50, 3100],
          [86, 96.5, 2600, 2.5, 60, 2700],
          [91, 98.3, 3100, 1.6, 48, 3200],
          [85, 96.0, 2500, 2.8, 62, 2600]
        ],
        dataSH: [  // 三号生产线
          [95, 99.0, 3800, 0.9, 38, 3600],
          [96, 99.3, 3900, 0.7, 35, 3700],
          [94, 98.8, 3700, 1.0, 40, 3500],
          [97, 99.5, 4000, 0.6, 33, 3800],
          [93, 98.5, 3600, 1.2, 42, 3400],
          [98, 99.7, 4100, 0.5, 30, 3900],
          [92, 98.2, 3500, 1.3, 45, 3300]
        ]
      }
    }
  },
  components: {
    Chart,
  }
}
</script>